package com.hw.one.collect.param;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * Copyright 2017 汉威.智慧环保事业部.
 * Created by 李亚坤 on 2017/07/20 15:38.
 */
public class SiteAirParam {

    private String siteCode;
    private String startTime;
    private String endTime;
    private List<String> siteCodeList;
    private List<String> factorList;
    private Map<String, String> siteCodeWithSNCode;
    private Map<String, String> SNCodeWithSiteCode;
    private String dataSources;

    public SiteAirParam() {

    }

    public SiteAirParam(String devices, String startTime, String endTime, String factors) {
        this.startTime = startTime;
        this.endTime = endTime;
        List<String> SNCodeList = new ArrayList<>();
        List<String> factorList = new ArrayList<>();
        String[] SNCodes = devices.split(",");
        String[] factors2 = factors.split(",");
        Collections.addAll(SNCodeList, SNCodes);
        Collections.addAll(factorList, factors2);
        this.siteCodeList = SNCodeList;
        this.factorList = factorList;
    }

    public String getDataSources() {
        return dataSources;
    }

    public void setDataSources(String dataSources) {
        this.dataSources = dataSources;
    }

    public Map<String, String> getSNCodeWithSiteCode() {
        return SNCodeWithSiteCode;
    }

    public void setSNCodeWithSiteCode(Map<String, String> SNCodeWithSiteCode) {
        this.SNCodeWithSiteCode = SNCodeWithSiteCode;
    }

    public Map<String, String> getSiteCodeWithSNCode() {
        return siteCodeWithSNCode;
    }

    public void setSiteCodeWithSNCode(Map<String, String> siteCodeWithSNCode) {
        this.siteCodeWithSNCode = siteCodeWithSNCode;
    }

    public List<String> getFactorList() {
        return factorList;
    }

    public void setFactorList(List<String> factorList) {
        this.factorList = factorList;
    }

    public String getSiteCode() {
        return siteCode;
    }

    public void setSiteCode(String siteCode) {
        this.siteCode = siteCode;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public List<String> getSiteCodeList() {
        return siteCodeList;
    }

    public void setSiteCodeList(List<String> siteCodeList) {
        this.siteCodeList = siteCodeList;
    }
}
